[Ivy]
[>Created: Mon Mar 03 14:49:20 ICT 2014]
144632E0359EDA0D 3.17 #module
>Proto >Proto Collection #zClass
Ms0 MainProcess Big #zClass
Ms0 RD #cInfo
Ms0 #process
Ms0 @TextInP .ui2RdDataAction .ui2RdDataAction #zField
Ms0 @TextInP .rdData2UIAction .rdData2UIAction #zField
Ms0 @TextInP .resExport .resExport #zField
Ms0 @TextInP .type .type #zField
Ms0 @TextInP .processKind .processKind #zField
Ms0 @AnnotationInP-0n ai ai #zField
Ms0 @TextInP .xml .xml #zField
Ms0 @TextInP .responsibility .responsibility #zField
Ms0 @RichDialogInitStart f0 '' #zField
Ms0 @RichDialogProcessEnd f1 '' #zField
Ms0 @RichDialogProcessEnd f4 '' #zField
Ms0 @GridStep f6 '' #zField
Ms0 @RichDialog f8 '' #zField
Ms0 @PushWFArc f9 '' #zField
Ms0 @PushWFArc f5 '' #zField
Ms0 @PushWFArc f7 '' #zField
Ms0 @RichDialogProcessStart f3 '' #zField
Ms0 @GridStep f10 '' #zField
Ms0 @PushWFArc f11 '' #zField
Ms0 @Alternative f12 '' #zField
Ms0 @PushWFArc f13 '' #zField
Ms0 @PushWFArc f14 '' #zField
Ms0 @RichDialogProcessStart f17 '' #zField
Ms0 @RichDialogProcessEnd f18 '' #zField
Ms0 @GridStep f22 '' #zField
Ms0 @PushWFArc f19 '' #zField
Ms0 @ProcessException f24 '' #zField
Ms0 @RichDialogProcessEnd f25 '' #zField
Ms0 @GridStep f27 '' #zField
Ms0 @PushWFArc f28 '' #zField
Ms0 @Alternative f29 '' #zField
Ms0 @PushWFArc f30 '' #zField
Ms0 @PushWFArc f31 '' #zField
Ms0 @CallSub f32 '' #zField
Ms0 @PushWFArc f23 '' #zField
Ms0 @PushWFArc f33 '' #zField
Ms0 @PushWFArc f21 '' #zField
Ms0 @EMail f20 '' #zField
Ms0 @GridStep f34 '' #zField
Ms0 @PushWFArc f35 '' #zField
Ms0 @PushWFArc f26 '' #zField
Ms0 @RichDialogMethodStart f38 '' #zField
Ms0 @RichDialogProcessEnd f39 '' #zField
Ms0 @GridStep f45 '' #zField
Ms0 @PushWFArc f44 '' #zField
Ms0 @CallSub f47 '' #zField
Ms0 @PushWFArc f46 '' #zField
Ms0 @RichDialogMethodStart f48 '' #zField
Ms0 @RichDialogProcessEnd f50 '' #zField
Ms0 @CallSub f51 '' #zField
Ms0 @CallSub f52 '' #zField
Ms0 @PushWFArc f55 '' #zField
Ms0 @RichDialogMethodStart f15 '' #zField
Ms0 @RichDialogProcessEnd f16 '' #zField
Ms0 @GridStep f36 '' #zField
Ms0 @PushWFArc f37 '' #zField
Ms0 @PushWFArc f56 '' #zField
Ms0 @CallSub f57 '' #zField
Ms0 @PushWFArc f43 '' #zField
Ms0 @RichDialogMethodStart f49 '' #zField
Ms0 @RichDialogProcessEnd f58 '' #zField
Ms0 @PushWFArc f40 '' #zField
Ms0 @CallSub f41 '' #zField
Ms0 @PushWFArc f42 '' #zField
Ms0 @PushWFArc f59 '' #zField
Ms0 @RichDialogMethodStart f60 '' #zField
Ms0 @RichDialogProcessEnd f61 '' #zField
Ms0 @PushWFArc f62 '' #zField
Ms0 @RichDialogProcessStart f63 '' #zField
Ms0 @RichDialogProcessEnd f64 '' #zField
Ms0 @CallSub f66 '' #zField
Ms0 @PushWFArc f67 '' #zField
Ms0 @GridStep f68 '' #zField
Ms0 @PushWFArc f69 '' #zField
Ms0 @PushWFArc f54 '' #zField
Ms0 @RichDialogMethodStart f70 '' #zField
Ms0 @RichDialogProcessEnd f71 '' #zField
Ms0 @GridStep f73 '' #zField
Ms0 @PushWFArc f74 '' #zField
Ms0 @PushWFArc f72 '' #zField
Ms0 @CallSub f75 '' #zField
Ms0 @PushWFArc f76 '' #zField
Ms0 @PushWFArc f53 '' #zField
Ms0 @RichDialogMethodStart f77 '' #zField
Ms0 @RichDialogProcessEnd f78 '' #zField
Ms0 @PushWFArc f79 '' #zField
Ms0 @PushWFArc f65 '' #zField
Ms0 @PushWFArc f80 '' #zField
>Proto Ms0 Ms0 MainProcess #zField
Ms0 f0 guid 144632E036A76C61 #txt
Ms0 f0 type vn.axonactive.vision.Main.MainData #txt
Ms0 f0 method start() #txt
Ms0 f0 disableUIEvents true #txt
Ms0 f0 inParameterDecl 'ch.ivyteam.ivy.richdialog.exec.RdMethodCallEvent methodEvent = event as ch.ivyteam.ivy.richdialog.exec.RdMethodCallEvent;
<> param = methodEvent.getInputArguments();
' #txt
Ms0 f0 outParameterDecl '<> result;
' #txt
Ms0 f0 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>start()</name>
    </language>
</elementInfo>
' #txt
Ms0 f0 350 54 20 20 13 0 #rect
Ms0 f0 @|RichDialogInitStartIcon #fIcon
Ms0 f1 type vn.axonactive.vision.Main.MainData #txt
Ms0 f1 350 294 20 20 13 0 #rect
Ms0 f1 @|RichDialogProcessEndIcon #fIcon
Ms0 f4 type vn.axonactive.vision.Main.MainData #txt
Ms0 f4 462 302 20 20 13 0 #rect
Ms0 f4 @|RichDialogProcessEndIcon #fIcon
Ms0 f6 actionDecl 'vn.axonactive.vision.Main.MainData out;
' #txt
Ms0 f6 actionTable 'out=in;
' #txt
Ms0 f6 actionCode 'import vn.axonactive.vision.UserBean;
import vn.axonactive.vision.utils.BeanUtils;

ivy.session.logoutSessionUser();

UserBean userBean = BeanUtils.findBean("userBean") as UserBean;
userBean.setLoggedIn(false);

' #txt
Ms0 f6 type vn.axonactive.vision.Main.MainData #txt
Ms0 f6 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>Logout the user</name>
        <nameStyle>15,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ms0 f6 454 140 36 24 20 -2 #rect
Ms0 f6 @|StepIcon #fIcon
Ms0 f8 targetWindow NEW:card: #txt
Ms0 f8 targetDisplay TOP #txt
Ms0 f8 richDialogId vn.axonactive.vision.Login #txt
Ms0 f8 startMethod start() #txt
Ms0 f8 type vn.axonactive.vision.Main.MainData #txt
Ms0 f8 requestActionDecl '<> param;' #txt
Ms0 f8 responseActionDecl 'vn.axonactive.vision.Main.MainData out;
' #txt
Ms0 f8 responseMappingAction 'out=in;
' #txt
Ms0 f8 windowConfiguration '* ' #txt
Ms0 f8 isAsynch false #txt
Ms0 f8 isInnerRd true #txt
Ms0 f8 userContext '* ' #txt
Ms0 f8 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>Redirect user to login page</name>
        <nameStyle>27,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ms0 f8 454 212 36 24 20 -2 #rect
Ms0 f8 @|RichDialogIcon #fIcon
Ms0 f9 expr out #txt
Ms0 f9 472 164 472 212 #arcP
Ms0 f5 expr out #txt
Ms0 f5 472 236 472 302 #arcP
Ms0 f7 expr out #txt
Ms0 f7 472 82 472 140 #arcP
Ms0 f3 guid 14467BFFD2FCD222 #txt
Ms0 f3 type vn.axonactive.vision.Main.MainData #txt
Ms0 f3 actionDecl 'vn.axonactive.vision.Main.MainData out;
' #txt
Ms0 f3 actionTable 'out=in;
' #txt
Ms0 f3 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>logout</name>
    </language>
</elementInfo>
' #txt
Ms0 f3 462 62 20 20 13 0 #rect
Ms0 f3 @|RichDialogProcessStartIcon #fIcon
Ms0 f10 actionDecl 'vn.axonactive.vision.Main.MainData out;
' #txt
Ms0 f10 actionTable 'out=in;
' #txt
Ms0 f10 actionCode 'import vn.axonactive.vision.utils.BeanUtils;
import vn.axonactive.vision.UserBean;

UserBean userBean = BeanUtils.findBean("userBean") as UserBean;

in.isLoggedIn = userBean.isLoggedIn();

' #txt
Ms0 f10 type vn.axonactive.vision.Main.MainData #txt
Ms0 f10 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>check if user is not login</name>
        <nameStyle>26,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ms0 f10 342 132 36 24 20 -2 #rect
Ms0 f10 @|StepIcon #fIcon
Ms0 f11 expr out #txt
Ms0 f11 360 74 360 132 #arcP
Ms0 f12 type vn.axonactive.vision.Main.MainData #txt
Ms0 f12 346 186 28 28 14 0 #rect
Ms0 f12 @|AlternativeIcon #fIcon
Ms0 f13 expr out #txt
Ms0 f13 360 156 360 186 #arcP
Ms0 f14 expr in #txt
Ms0 f14 outCond 'in.isLoggedIn == false' #txt
Ms0 f14 372 202 454 220 #arcP
Ms0 f17 guid 1446D74D5F570E60 #txt
Ms0 f17 type vn.axonactive.vision.Main.MainData #txt
Ms0 f17 actionDecl 'vn.axonactive.vision.Main.MainData out;
' #txt
Ms0 f17 actionTable 'out=in;
' #txt
Ms0 f17 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>onBtnSendEmailClick</name>
        <nameStyle>19,5,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ms0 f17 790 54 20 20 13 0 #rect
Ms0 f17 @|RichDialogProcessStartIcon #fIcon
Ms0 f18 type vn.axonactive.vision.Main.MainData #txt
Ms0 f18 790 398 20 20 13 0 #rect
Ms0 f18 @|RichDialogProcessEndIcon #fIcon
Ms0 f22 actionDecl 'vn.axonactive.vision.Main.MainData out;
' #txt
Ms0 f22 actionTable 'out=in;
' #txt
Ms0 f22 actionCode 'import vn.axonactive.vision.entity.Email;
import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext; 

in.email = new Email();

FacesContext.getCurrentInstance()
		.addMessage(null, 
			new FacesMessage(FacesMessage.SEVERITY_INFO, "Success!", "Message sent successfully"));
		' #txt
Ms0 f22 type vn.axonactive.vision.Main.MainData #txt
Ms0 f22 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>Reset data and send success message</name>
        <nameStyle>35,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ms0 f22 782 348 37 24 20 -2 #rect
Ms0 f22 @|StepIcon #fIcon
Ms0 f19 expr out #txt
Ms0 f19 799 372 799 398 #arcP
Ms0 f24 .resExport export #txt
Ms0 f24 actionDecl 'vn.axonactive.vision.Main.MainData out;
' #txt
Ms0 f24 actionTable 'out=in;
' #txt
Ms0 f24 actionCode ivy.log.error(exception); #txt
Ms0 f24 type vn.axonactive.vision.Main.MainData #txt
Ms0 f24 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>mailExceptionHandler</name>
        <nameStyle>20,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ms0 f24 1955 67 26 26 14 0 #rect
Ms0 f24 @|ExceptionIcon #fIcon
Ms0 f25 type vn.axonactive.vision.Main.MainData #txt
Ms0 f25 1958 238 20 20 13 0 #rect
Ms0 f25 @|RichDialogProcessEndIcon #fIcon
Ms0 f27 actionDecl 'vn.axonactive.vision.Main.MainData out;
' #txt
Ms0 f27 actionTable 'out=in;
' #txt
Ms0 f27 actionCode 'import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext; 

if(in.email.receiver.isEmpty()) {
		FacesContext.getCurrentInstance()
		.addMessage(null, 
			new FacesMessage(FacesMessage.SEVERITY_ERROR, "Error!", "Please select valid email."));
		in.setIsValidationPassed(false);
		ivy.log.info("Failed");
} else {
		in.setIsValidationPassed(true);
}' #txt
Ms0 f27 type vn.axonactive.vision.Main.MainData #txt
Ms0 f27 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>email validation</name>
        <nameStyle>16,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ms0 f27 782 117 36 23 20 -2 #rect
Ms0 f27 @|StepIcon #fIcon
Ms0 f28 expr out #txt
Ms0 f28 800 74 800 116 #arcP
Ms0 f29 type vn.axonactive.vision.Main.MainData #txt
Ms0 f29 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>Check pass all validation</name>
        <nameStyle>25,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ms0 f29 786 178 28 28 14 0 #rect
Ms0 f29 @|AlternativeIcon #fIcon
Ms0 f30 expr out #txt
Ms0 f30 800 139 800 178 #arcP
Ms0 f31 expr in #txt
Ms0 f31 814 192 810 408 #arcP
Ms0 f31 1 984 192 #addKink
Ms0 f31 2 984 408 #addKink
Ms0 f31 1 0.2885905192125302 0 0 #arcLabel
Ms0 f32 type vn.axonactive.vision.Main.MainData #txt
Ms0 f32 processCall 'Functional Processes/DataAccessProcesses/ManageEmail:insertNewEmail(vn.axonactive.vision.entity.Email)' #txt
Ms0 f32 doCall true #txt
Ms0 f32 requestActionDecl '<vn.axonactive.vision.entity.Email Email> param;
' #txt
Ms0 f32 requestMappingAction 'param.Email.content=in.email.content;
param.Email.id=in.email.id;
param.Email.is_draft=false;
param.Email.is_read=false;
param.Email.receiver=in.email.receiver;
param.Email.sender=ivy.session.getSessionUser().getEMailAddress();
param.Email.subject=in.email.subject;
' #txt
Ms0 f32 responseActionDecl 'vn.axonactive.vision.Main.MainData out;
' #txt
Ms0 f32 responseMappingAction 'out=in;
' #txt
Ms0 f32 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>insertNewEmail(EmailData)</name>
        <nameStyle>25,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ms0 f32 782 292 36 24 20 -2 #rect
Ms0 f32 @|CallSubIcon #fIcon
Ms0 f23 expr out #txt
Ms0 f23 800 316 799 348 #arcP
Ms0 f33 expr out #txt
Ms0 f33 800 260 800 292 #arcP
Ms0 f21 expr in #txt
Ms0 f21 outCond 'in.isValidationPassed == true' #txt
Ms0 f21 800 206 800 236 #arcP
Ms0 f20 beanConfig '"{/emailSubject ""<%=in.email.subject%>""/emailFrom ""<%=ivy.session.getSessionUser().getEMailAddress() %>""/emailReplyTo """"/emailTo ""<%=in.email.receiver%>""/emailCC """"/emailBCC """"/exceptionMissingEmailAttachments ""false""/emailMessage ""<html>\\n<%=in.email.content%>\\n</html>""/emailAttachments * }"' #txt
Ms0 f20 type vn.axonactive.vision.Main.MainData #txt
Ms0 f20 timeout 0 #txt
Ms0 f20 exceptionHandler 144632E0359EDA0D-f24-buffer #txt
Ms0 f20 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>Send Email</name>
        <nameStyle>10,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ms0 f20 782 236 36 24 20 -2 #rect
Ms0 f20 @|EMailIcon #fIcon
Ms0 f34 actionDecl 'vn.axonactive.vision.Main.MainData out;
' #txt
Ms0 f34 actionTable 'out=in;
' #txt
Ms0 f34 actionCode 'import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext; 

FacesContext.getCurrentInstance()
		.addMessage(null, 
			new FacesMessage(FacesMessage.SEVERITY_FATAL, "Unexpected Error!", "Please contact with Administrator of this website"));' #txt
Ms0 f34 type vn.axonactive.vision.Main.MainData #txt
Ms0 f34 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>Return error message to user</name>
        <nameStyle>28,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ms0 f34 1950 148 36 24 20 -2 #rect
Ms0 f34 @|StepIcon #fIcon
Ms0 f35 expr out #txt
Ms0 f35 1968 93 1968 148 #arcP
Ms0 f26 expr out #txt
Ms0 f26 1968 172 1968 238 #arcP
Ms0 f38 guid 144765BB80C3A253 #txt
Ms0 f38 type vn.axonactive.vision.Main.MainData #txt
Ms0 f38 method onClickDeleteEmail(java.lang.Integer) #txt
Ms0 f38 disableUIEvents false #txt
Ms0 f38 inParameterDecl 'ch.ivyteam.ivy.richdialog.exec.RdMethodCallEvent methodEvent = event as ch.ivyteam.ivy.richdialog.exec.RdMethodCallEvent;
<java.lang.Integer id> param = methodEvent.getInputArguments();
' #txt
Ms0 f38 inParameterMapAction 'out.selectedEmailIdForDelete=param.id;
' #txt
Ms0 f38 outParameterDecl '<> result;
' #txt
Ms0 f38 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>onClickDeleteEmail(Integer id)</name>
        <nameStyle>30,5,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ms0 f38 1286 54 20 20 13 0 #rect
Ms0 f38 @|RichDialogMethodStartIcon #fIcon
Ms0 f39 type vn.axonactive.vision.Main.MainData #txt
Ms0 f39 1286 406 20 20 13 0 #rect
Ms0 f39 @|RichDialogProcessEndIcon #fIcon
Ms0 f45 actionDecl 'vn.axonactive.vision.Main.MainData out;
' #txt
Ms0 f45 actionTable 'out=in;
' #txt
Ms0 f45 actionCode 'import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext; 

in.selectedEmailIdForDelete = null;

FacesContext.getCurrentInstance()
		.addMessage(null, 
			new FacesMessage(FacesMessage.SEVERITY_INFO, "Success!", "Email removed"));' #txt
Ms0 f45 type vn.axonactive.vision.Main.MainData #txt
Ms0 f45 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>Return success message to user</name>
        <nameStyle>30,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ms0 f45 1278 348 36 24 20 -2 #rect
Ms0 f45 @|StepIcon #fIcon
Ms0 f44 expr out #txt
Ms0 f44 1296 372 1296 406 #arcP
Ms0 f47 type vn.axonactive.vision.Main.MainData #txt
Ms0 f47 processCall 'Functional Processes/DataAccessProcesses/ManageEmail:getAllEmailsBelongToUser()' #txt
Ms0 f47 doCall true #txt
Ms0 f47 requestActionDecl '<> param;
' #txt
Ms0 f47 responseActionDecl 'vn.axonactive.vision.Main.MainData out;
' #txt
Ms0 f47 responseMappingAction 'out=in;
out.emailList=result.emailList;
' #txt
Ms0 f47 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>getAllEmailsBelongToUser()</name>
        <nameStyle>26,5,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ms0 f47 1278 292 36 24 20 -2 #rect
Ms0 f47 @|CallSubIcon #fIcon
Ms0 f46 expr out #txt
Ms0 f46 1296 316 1296 348 #arcP
Ms0 f48 guid 14476AE4E35FB39C #txt
Ms0 f48 type vn.axonactive.vision.Main.MainData #txt
Ms0 f48 method onPreRenderPage() #txt
Ms0 f48 disableUIEvents false #txt
Ms0 f48 inParameterDecl 'ch.ivyteam.ivy.richdialog.exec.RdMethodCallEvent methodEvent = event as ch.ivyteam.ivy.richdialog.exec.RdMethodCallEvent;
<> param = methodEvent.getInputArguments();
' #txt
Ms0 f48 outParameterDecl '<> result;
' #txt
Ms0 f48 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>onPreRenderPage()</name>
        <nameStyle>17,5,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ms0 f48 62 62 20 20 13 0 #rect
Ms0 f48 @|RichDialogMethodStartIcon #fIcon
Ms0 f50 type vn.axonactive.vision.Main.MainData #txt
Ms0 f50 62 342 20 20 13 0 #rect
Ms0 f50 @|RichDialogProcessEndIcon #fIcon
Ms0 f51 type vn.axonactive.vision.Main.MainData #txt
Ms0 f51 processCall 'Functional Processes/DataAccessProcesses/ManageEmail:getAllEmailsBelongToUser()' #txt
Ms0 f51 doCall true #txt
Ms0 f51 requestActionDecl '<> param;
' #txt
Ms0 f51 responseActionDecl 'vn.axonactive.vision.Main.MainData out;
' #txt
Ms0 f51 responseMappingAction 'out=in;
out.emailList=result.emailList;
' #txt
Ms0 f51 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>getAllEmailsBelongToUser()</name>
        <nameStyle>26,5,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ms0 f51 54 236 36 24 20 -2 #rect
Ms0 f51 @|CallSubIcon #fIcon
Ms0 f52 type vn.axonactive.vision.Main.MainData #txt
Ms0 f52 processCall 'Functional Processes/DataAccessProcesses/ManageEmail:getAllMembers()' #txt
Ms0 f52 doCall true #txt
Ms0 f52 requestActionDecl '<> param;
' #txt
Ms0 f52 responseActionDecl 'vn.axonactive.vision.Main.MainData out;
' #txt
Ms0 f52 responseMappingAction 'out=in;
out.memberList=result.memberList;
' #txt
Ms0 f52 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>getAllMembers()</name>
        <nameStyle>15,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ms0 f52 54 172 36 24 20 -2 #rect
Ms0 f52 @|CallSubIcon #fIcon
Ms0 f55 expr out #txt
Ms0 f55 72 196 72 236 #arcP
Ms0 f15 guid 14476B992E1D7AC2 #txt
Ms0 f15 type vn.axonactive.vision.Main.MainData #txt
Ms0 f15 method onTabChange(org.primefaces.event.TabChangeEvent) #txt
Ms0 f15 disableUIEvents false #txt
Ms0 f15 inParameterDecl 'ch.ivyteam.ivy.richdialog.exec.RdMethodCallEvent methodEvent = event as ch.ivyteam.ivy.richdialog.exec.RdMethodCallEvent;
<org.primefaces.event.TabChangeEvent event> param = methodEvent.getInputArguments();
' #txt
Ms0 f15 inParameterMapAction 'out.tabChangeEvent=param.event;
' #txt
Ms0 f15 outParameterDecl '<> result;
' #txt
Ms0 f15 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>onTabChange(TabChangeEvent event)</name>
        <nameStyle>33,5,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ms0 f15 2230 70 20 20 13 0 #rect
Ms0 f15 @|RichDialogMethodStartIcon #fIcon
Ms0 f16 type vn.axonactive.vision.Main.MainData #txt
Ms0 f16 2230 254 20 20 13 0 #rect
Ms0 f16 @|RichDialogProcessEndIcon #fIcon
Ms0 f36 actionDecl 'vn.axonactive.vision.Main.MainData out;
' #txt
Ms0 f36 actionTable 'out=in;
' #txt
Ms0 f36 actionCode 'import org.primefaces.context.RequestContext;
import vn.axonactive.vision.entity.Email;
import org.primefaces.component.tabview.Tab;
import org.primefaces.component.tabview.TabView;


TabView mainTab = in.tabChangeEvent.getComponent() as TabView;
Tab tab = in.tabChangeEvent.getTab();

int activeTab = mainTab.getChildren().indexOf(tab);
in.setFilterQuery("");

if(activeTab != 0) {
	in.email = new Email();
}' #txt
Ms0 f36 type vn.axonactive.vision.Main.MainData #txt
Ms0 f36 2222 149 36 22 20 -2 #rect
Ms0 f36 @|StepIcon #fIcon
Ms0 f37 expr out #txt
Ms0 f37 2240 90 2240 149 #arcP
Ms0 f56 expr out #txt
Ms0 f56 2240 171 2240 254 #arcP
Ms0 f57 type vn.axonactive.vision.Main.MainData #txt
Ms0 f57 processCall 'Functional Processes/DataAccessProcesses/ManageEmail:deleteEmail(Integer)' #txt
Ms0 f57 doCall true #txt
Ms0 f57 requestActionDecl '<java.lang.Integer id> param;
' #txt
Ms0 f57 requestMappingAction 'param.id=in.selectedEmailIdForDelete;
' #txt
Ms0 f57 responseActionDecl 'vn.axonactive.vision.Main.MainData out;
' #txt
Ms0 f57 responseMappingAction 'out=in;
' #txt
Ms0 f57 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>deleteEmail(Integer)</name>
        <nameStyle>20,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ms0 f57 1278 220 36 24 20 -2 #rect
Ms0 f57 @|CallSubIcon #fIcon
Ms0 f43 expr out #txt
Ms0 f43 1296 244 1296 292 #arcP
Ms0 f49 guid 144775FDEE9C9A97 #txt
Ms0 f49 type vn.axonactive.vision.Main.MainData #txt
Ms0 f49 method onViewEmail(java.lang.Integer) #txt
Ms0 f49 disableUIEvents false #txt
Ms0 f49 inParameterDecl 'ch.ivyteam.ivy.richdialog.exec.RdMethodCallEvent methodEvent = event as ch.ivyteam.ivy.richdialog.exec.RdMethodCallEvent;
<java.lang.Integer id> param = methodEvent.getInputArguments();
' #txt
Ms0 f49 inParameterMapAction 'out.selectedEmailIdForRead=param.id;
' #txt
Ms0 f49 outParameterDecl '<> result;
' #txt
Ms0 f49 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>onViewEmail(Integer)</name>
        <nameStyle>20,5,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ms0 f49 1582 70 20 20 13 0 #rect
Ms0 f49 @|RichDialogMethodStartIcon #fIcon
Ms0 f58 type vn.axonactive.vision.Main.MainData #txt
Ms0 f58 1582 398 20 20 13 0 #rect
Ms0 f58 @|RichDialogProcessEndIcon #fIcon
Ms0 f40 expr out #txt
Ms0 f40 1296 74 1296 220 #arcP
Ms0 f41 type vn.axonactive.vision.Main.MainData #txt
Ms0 f41 processCall 'Functional Processes/DataAccessProcesses/ManageEmail:updateIsRead(Integer)' #txt
Ms0 f41 doCall true #txt
Ms0 f41 requestActionDecl '<java.lang.Integer id> param;
' #txt
Ms0 f41 requestMappingAction 'param.id=in.selectedEmailIdForRead;
' #txt
Ms0 f41 responseActionDecl 'vn.axonactive.vision.Main.MainData out;
' #txt
Ms0 f41 responseMappingAction 'out=in;
' #txt
Ms0 f41 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>updateIsRead(Integer)</name>
        <nameStyle>21,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ms0 f41 1574 204 36 24 20 -2 #rect
Ms0 f41 @|CallSubIcon #fIcon
Ms0 f42 expr out #txt
Ms0 f42 1592 90 1592 204 #arcP
Ms0 f59 expr out #txt
Ms0 f59 1592 228 1592 398 #arcP
Ms0 f60 guid 144777152474BC84 #txt
Ms0 f60 type vn.axonactive.vision.Main.MainData #txt
Ms0 f60 method onClickForward(vn.axonactive.vision.entity.Email) #txt
Ms0 f60 disableUIEvents false #txt
Ms0 f60 inParameterDecl 'ch.ivyteam.ivy.richdialog.exec.RdMethodCallEvent methodEvent = event as ch.ivyteam.ivy.richdialog.exec.RdMethodCallEvent;
<vn.axonactive.vision.entity.Email email> param = methodEvent.getInputArguments();
' #txt
Ms0 f60 inParameterMapAction 'out.email.content="<br /> ------------ Forward Message ------------ <br />" + param.email.content;
out.email.subject="FW: "+param.email.subject;
' #txt
Ms0 f60 outParameterDecl '<> result;
' #txt
Ms0 f60 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>onClickForward(Email)</name>
        <nameStyle>21,5,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ms0 f60 1798 78 20 20 13 0 #rect
Ms0 f60 @|RichDialogMethodStartIcon #fIcon
Ms0 f61 type vn.axonactive.vision.Main.MainData #txt
Ms0 f61 1798 342 20 20 13 0 #rect
Ms0 f61 @|RichDialogProcessEndIcon #fIcon
Ms0 f62 expr out #txt
Ms0 f62 1808 98 1808 342 #arcP
Ms0 f63 guid 14477B119188E819 #txt
Ms0 f63 type vn.axonactive.vision.Main.MainData #txt
Ms0 f63 actionDecl 'vn.axonactive.vision.Main.MainData out;
' #txt
Ms0 f63 actionTable 'out=in;
' #txt
Ms0 f63 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>onBtnSaveDraft</name>
    </language>
</elementInfo>
' #txt
Ms0 f63 1070 62 20 20 13 0 #rect
Ms0 f63 @|RichDialogProcessStartIcon #fIcon
Ms0 f64 type vn.axonactive.vision.Main.MainData #txt
Ms0 f64 1070 334 20 20 13 0 #rect
Ms0 f64 @|RichDialogProcessEndIcon #fIcon
Ms0 f66 type vn.axonactive.vision.Main.MainData #txt
Ms0 f66 processCall 'Functional Processes/DataAccessProcesses/ManageEmail:createOrUpdateMailAsDraft(vn.axonactive.vision.entity.Email)' #txt
Ms0 f66 doCall true #txt
Ms0 f66 requestActionDecl '<vn.axonactive.vision.entity.Email Email> param;
' #txt
Ms0 f66 requestMappingAction 'param.Email=in.email;
' #txt
Ms0 f66 responseActionDecl 'vn.axonactive.vision.Main.MainData out;
' #txt
Ms0 f66 responseMappingAction 'out=in;
' #txt
Ms0 f66 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>createOrUpdateMailAsDraft(Email)</name>
        <nameStyle>32,5,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ms0 f66 1062 172 36 24 20 -2 #rect
Ms0 f66 @|CallSubIcon #fIcon
Ms0 f67 expr out #txt
Ms0 f67 1080 82 1080 172 #arcP
Ms0 f68 actionDecl 'vn.axonactive.vision.Main.MainData out;
' #txt
Ms0 f68 actionTable 'out=in;
' #txt
Ms0 f68 actionCode 'import vn.axonactive.vision.entity.Email;

if(in.email == null) {
	in.email = new Email();
	ivy.log.info("AAAAAA");
}' #txt
Ms0 f68 type vn.axonactive.vision.Main.MainData #txt
Ms0 f68 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>Initialize</name>
        <nameStyle>10,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ms0 f68 54 108 36 24 20 -2 #rect
Ms0 f68 @|StepIcon #fIcon
Ms0 f69 expr out #txt
Ms0 f69 72 82 72 108 #arcP
Ms0 f54 expr out #txt
Ms0 f54 72 132 72 172 #arcP
Ms0 f70 guid 144837380C12D8E8 #txt
Ms0 f70 type vn.axonactive.vision.Main.MainData #txt
Ms0 f70 method onCompleteSelectEmailStr(String) #txt
Ms0 f70 disableUIEvents false #txt
Ms0 f70 inParameterDecl 'ch.ivyteam.ivy.richdialog.exec.RdMethodCallEvent methodEvent = event as ch.ivyteam.ivy.richdialog.exec.RdMethodCallEvent;
<java.lang.String query> param = methodEvent.getInputArguments();
' #txt
Ms0 f70 inParameterMapAction 'out.filterQuery=param.query;
' #txt
Ms0 f70 outParameterDecl '<List<java.lang.String> memberListStr> result;
' #txt
Ms0 f70 outParameterMapAction 'result.memberListStr=in.filteredMemberListStr;
' #txt
Ms0 f70 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>onCompleteSelectEmailStr</name>
        <nameStyle>24,5,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ms0 f70 662 63 20 18 13 0 #rect
Ms0 f70 @|RichDialogMethodStartIcon #fIcon
Ms0 f71 type vn.axonactive.vision.Main.MainData #txt
Ms0 f71 662 310 20 20 13 0 #rect
Ms0 f71 @|RichDialogProcessEndIcon #fIcon
Ms0 f73 actionDecl 'vn.axonactive.vision.Main.MainData out;
' #txt
Ms0 f73 actionTable 'out=in;
' #txt
Ms0 f73 actionCode 'import java.util.ArrayList;
import vn.axonactive.vision.utils.BeanUtils;
import ch.ivyteam.ivy.security.IUser;


in.filteredMemberListStr = new ArrayList<String>();


in.filteredMemberListStr = BeanUtils.filterUsersByQuery(in.filterQuery, in.memberList);

' #txt
Ms0 f73 type vn.axonactive.vision.Main.MainData #txt
Ms0 f73 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>Filter process</name>
        <nameStyle>14,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ms0 f73 654 172 36 24 20 -2 #rect
Ms0 f73 @|StepIcon #fIcon
Ms0 f74 expr out #txt
Ms0 f74 672 81 672 172 #arcP
Ms0 f74 0 0.49455951706542706 0 0 #arcLabel
Ms0 f72 expr out #txt
Ms0 f72 672 196 672 310 #arcP
Ms0 f75 type vn.axonactive.vision.Main.MainData #txt
Ms0 f75 processCall 'Functional Processes/DataAccessProcesses/ManageEmail:getAllDraftEmailsBelongToUser()' #txt
Ms0 f75 doCall true #txt
Ms0 f75 requestActionDecl '<> param;
' #txt
Ms0 f75 responseActionDecl 'vn.axonactive.vision.Main.MainData out;
' #txt
Ms0 f75 responseMappingAction 'out=in;
out.draftEmailList=result.draftEmailList;
' #txt
Ms0 f75 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>getAllDraftEmailsBelongToUser()</name>
        <nameStyle>31,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ms0 f75 54 284 36 24 20 -2 #rect
Ms0 f75 @|CallSubIcon #fIcon
Ms0 f76 expr out #txt
Ms0 f76 72 260 72 284 #arcP
Ms0 f53 expr out #txt
Ms0 f53 72 308 72 342 #arcP
Ms0 f77 guid 14485CA453E56B3A #txt
Ms0 f77 type vn.axonactive.vision.Main.MainData #txt
Ms0 f77 method resumeEditEmail(vn.axonactive.vision.entity.Email) #txt
Ms0 f77 disableUIEvents false #txt
Ms0 f77 inParameterDecl 'ch.ivyteam.ivy.richdialog.exec.RdMethodCallEvent methodEvent = event as ch.ivyteam.ivy.richdialog.exec.RdMethodCallEvent;
<vn.axonactive.vision.entity.Email email> param = methodEvent.getInputArguments();
' #txt
Ms0 f77 inParameterMapAction 'out.email=param.email;
' #txt
Ms0 f77 outParameterDecl '<> result;
' #txt
Ms0 f77 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>resumeEditEmail(Email)</name>
        <nameStyle>22,5,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ms0 f77 2518 70 20 20 13 0 #rect
Ms0 f77 @|RichDialogMethodStartIcon #fIcon
Ms0 f78 type vn.axonactive.vision.Main.MainData #txt
Ms0 f78 2518 262 20 20 13 0 #rect
Ms0 f78 @|RichDialogProcessEndIcon #fIcon
Ms0 f79 expr out #txt
Ms0 f79 2528 90 2528 262 #arcP
Ms0 f65 expr out #txt
Ms0 f65 1080 196 1080 334 #arcP
Ms0 f80 expr in #txt
Ms0 f80 outCond 'in.isLoggedIn == true' #txt
Ms0 f80 360 214 360 294 #arcP
>Proto Ms0 .type vn.axonactive.vision.Main.MainData #txt
>Proto Ms0 .processKind HTML_DIALOG #txt
>Proto Ms0 .xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <swimlaneLabel></swimlaneLabel>
    </language>
</elementInfo>
' #txt
>Proto Ms0 -8 -8 16 16 16 26 #rect
>Proto Ms0 '' #fIcon
Ms0 f3 mainOut f7 tail #connect
Ms0 f7 head f6 mainIn #connect
Ms0 f6 mainOut f9 tail #connect
Ms0 f9 head f8 mainIn #connect
Ms0 f8 mainOut f5 tail #connect
Ms0 f5 head f4 mainIn #connect
Ms0 f0 mainOut f11 tail #connect
Ms0 f11 head f10 mainIn #connect
Ms0 f10 mainOut f13 tail #connect
Ms0 f13 head f12 in #connect
Ms0 f14 head f8 mainIn #connect
Ms0 f12 out f14 tail #connect
Ms0 f22 mainOut f19 tail #connect
Ms0 f19 head f18 mainIn #connect
Ms0 f17 mainOut f28 tail #connect
Ms0 f28 head f27 mainIn #connect
Ms0 f27 mainOut f30 tail #connect
Ms0 f30 head f29 in #connect
Ms0 f29 out f21 tail #connect
Ms0 f21 head f20 mainIn #connect
Ms0 f29 out f31 tail #connect
Ms0 f31 head f18 mainIn #connect
Ms0 f20 mainOut f33 tail #connect
Ms0 f33 head f32 mainIn #connect
Ms0 f32 mainOut f23 tail #connect
Ms0 f23 head f22 mainIn #connect
Ms0 f24 mainOut f35 tail #connect
Ms0 f35 head f34 mainIn #connect
Ms0 f34 mainOut f26 tail #connect
Ms0 f26 head f25 mainIn #connect
Ms0 f45 mainOut f44 tail #connect
Ms0 f44 head f39 mainIn #connect
Ms0 f47 mainOut f46 tail #connect
Ms0 f46 head f45 mainIn #connect
Ms0 f52 mainOut f55 tail #connect
Ms0 f55 head f51 mainIn #connect
Ms0 f15 mainOut f37 tail #connect
Ms0 f37 head f36 mainIn #connect
Ms0 f36 mainOut f56 tail #connect
Ms0 f56 head f16 mainIn #connect
Ms0 f57 mainOut f43 tail #connect
Ms0 f43 head f47 mainIn #connect
Ms0 f38 mainOut f40 tail #connect
Ms0 f40 head f57 mainIn #connect
Ms0 f49 mainOut f42 tail #connect
Ms0 f42 head f41 mainIn #connect
Ms0 f41 mainOut f59 tail #connect
Ms0 f59 head f58 mainIn #connect
Ms0 f60 mainOut f62 tail #connect
Ms0 f62 head f61 mainIn #connect
Ms0 f63 mainOut f67 tail #connect
Ms0 f67 head f66 mainIn #connect
Ms0 f48 mainOut f69 tail #connect
Ms0 f69 head f68 mainIn #connect
Ms0 f68 mainOut f54 tail #connect
Ms0 f54 head f52 mainIn #connect
Ms0 f70 mainOut f74 tail #connect
Ms0 f74 head f73 mainIn #connect
Ms0 f73 mainOut f72 tail #connect
Ms0 f72 head f71 mainIn #connect
Ms0 f51 mainOut f76 tail #connect
Ms0 f76 head f75 mainIn #connect
Ms0 f75 mainOut f53 tail #connect
Ms0 f53 head f50 mainIn #connect
Ms0 f77 mainOut f79 tail #connect
Ms0 f79 head f78 mainIn #connect
Ms0 f66 mainOut f65 tail #connect
Ms0 f65 head f64 mainIn #connect
Ms0 f12 out f80 tail #connect
Ms0 f80 head f1 mainIn #connect
